package com.tanhua.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(value = "movement")
public class Movement implements Serializable {

    private ObjectId id;
    private Long pid;//自动增长的id
    private Long userId;//发布者
    private String textContent;//动态文字内容
    private List<String> medias;
    private Integer state;//审核转台  0 未审核(默认) 1 已审核
    private String longitude;//经度
    private String latitude;//维度
    private String locationName;//地名
    private Long created;//创建时间
    private Integer commentCount;//评论数
    private Integer likeCount;//点赞数
    private Integer loveCount;//喜欢数


}
